/*
 * Balances.java
 *
 * Created on 20 de octubre de 2008, 04:05 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package score.balances;
import com.sun.data.provider.impl.ObjectListDataProvider;
import java.util.HashMap;
import java.util.Hashtable;
import score.Cliente;

/**
 *
 * @author analista4
 */
public class Balances extends ObjectListDataProvider{
    
    private int year;
    private int corte;
    private HashMap variables;
    private Hashtable vars;
    private Cliente persona;
    /** Creates a new instance of Balances */
    public Balances(Cliente cli,int year,int corte) {
        this.year=year;
        this.corte=corte;
        persona=cli;
        variables=new HashMap();
        vars=new Hashtable();
    }
        
    public String getValorVariable(String codvariable){
        return variables.get(codvariable).toString();
    }
    
    public void setValorVariable(String codvariable, String valvariable){
        variables.put(codvariable,valvariable);
    }
}
